package com.project.service.impl;

import com.project.bean.ColumnBean;
import com.project.mapper.IColumnMapper;
import com.project.service.IColumnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ColumnServiceImpl implements IColumnService {
    @Autowired
    private IColumnMapper columnMapper;
    @Override
    public List<ColumnBean> findAll(String year) {
        return columnMapper.findAll(year);
    }

    @Override
    public List<Integer> findYears() {
        return columnMapper.findYears();
    }
}
